package com.ruoyi.irtu.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备对象 irtu_device
 * 
 * @author wb
 * @date 2023-03-13
 */
public class IrtuDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备ID */
    private Long deviceId;

    /** 设备IMEI */
    @Excel(name = "设备IMEI")
    private String deviceImei;

    /** 设备SIM-ICCID */
    @Excel(name = "设备SIM-ICCID")
    private String simIccid;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** 设备型号 */
    @Excel(name = "设备型号")
    private String deviceModel;

    /** 设备SN */
    @Excel(name = "设备SN")
    private String deviceSn;

    /** 设备升级状态 */
    @Excel(name = "设备升级状态")
    private Integer deviceUpgrade;

    /** 设备Debug状态 */
    @Excel(name = "设备Debug状态")
    private Integer deviceDebug;

    /** 设备固件版本 */
    @Excel(name = "设备固件版本")
    private String deviceVer;

    /** 服务器参数版本 */
    @Excel(name = "服务器参数版本")
    private String serverVer;

    /** 设备参数版本 */
    @Excel(name = "设备参数版本")
    private String paramVer;

    /** 设备参数更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "设备参数更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paramUpdate;

    /** 设备上线时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "设备上线时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date onlineTime;

    /** 设备保活时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "设备保活时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date keepaliveTime;

    /** 项目ID */
    @Excel(name = "项目ID")
    private Long projectId;

    /** 固件ID */
    @Excel(name = "固件ID")
    private Long firmwareId;

    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }
    public void setDeviceImei(String deviceImei) 
    {
        this.deviceImei = deviceImei;
    }

    public String getDeviceImei() 
    {
        return deviceImei;
    }
    public void setSimIccid(String simIccid) 
    {
        this.simIccid = simIccid;
    }

    public String getSimIccid() 
    {
        return simIccid;
    }
    public void setDeviceName(String deviceName) 
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName() 
    {
        return deviceName;
    }
    public void setDeviceModel(String deviceModel) 
    {
        this.deviceModel = deviceModel;
    }

    public String getDeviceModel() 
    {
        return deviceModel;
    }
    public void setDeviceSn(String deviceSn) 
    {
        this.deviceSn = deviceSn;
    }

    public String getDeviceSn() 
    {
        return deviceSn;
    }
    public void setDeviceUpgrade(Integer deviceUpgrade) 
    {
        this.deviceUpgrade = deviceUpgrade;
    }

    public Integer getDeviceUpgrade() 
    {
        return deviceUpgrade;
    }
    public void setDeviceDebug(Integer deviceDebug) 
    {
        this.deviceDebug = deviceDebug;
    }

    public Integer getDeviceDebug() 
    {
        return deviceDebug;
    }
    public void setDeviceVer(String deviceVer) 
    {
        this.deviceVer = deviceVer;
    }

    public String getDeviceVer() 
    {
        return deviceVer;
    }
    public void setServerVer(String serverVer) 
    {
        this.serverVer = serverVer;
    }

    public String getServerVer() 
    {
        return serverVer;
    }
    public void setParamVer(String paramVer) 
    {
        this.paramVer = paramVer;
    }

    public String getParamVer() 
    {
        return paramVer;
    }
    public void setParamUpdate(Date paramUpdate) 
    {
        this.paramUpdate = paramUpdate;
    }

    public Date getParamUpdate() 
    {
        return paramUpdate;
    }
    public void setOnlineTime(Date onlineTime) 
    {
        this.onlineTime = onlineTime;
    }

    public Date getOnlineTime() 
    {
        return onlineTime;
    }
    public void setKeepaliveTime(Date keepaliveTime) 
    {
        this.keepaliveTime = keepaliveTime;
    }

    public Date getKeepaliveTime() 
    {
        return keepaliveTime;
    }
    public void setProjectId(Long projectId) 
    {
        this.projectId = projectId;
    }

    public Long getProjectId() 
    {
        return projectId;
    }
    public void setFirmwareId(Long firmwareId) 
    {
        this.firmwareId = firmwareId;
    }

    public Long getFirmwareId() 
    {
        return firmwareId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("deviceId", getDeviceId())
            .append("deviceImei", getDeviceImei())
            .append("simIccid", getSimIccid())
            .append("deviceName", getDeviceName())
            .append("deviceModel", getDeviceModel())
            .append("deviceSn", getDeviceSn())
            .append("deviceUpgrade", getDeviceUpgrade())
            .append("deviceDebug", getDeviceDebug())
            .append("deviceVer", getDeviceVer())
            .append("serverVer", getServerVer())
            .append("paramVer", getParamVer())
            .append("paramUpdate", getParamUpdate())
            .append("onlineTime", getOnlineTime())
            .append("keepaliveTime", getKeepaliveTime())
            .append("projectId", getProjectId())
            .append("firmwareId", getFirmwareId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
